package com.example.kekewaimaibao.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.kekewaimaibao.user.mapper.UserMapper;
import com.example.kekewaimaibao.user.model.UserDO;
import com.example.kekewaimaibao.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: xuxiang
 * @date: 2022/3/6 22:45 星期日
 * @description:
 * @version: 1.0
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserDO> implements IUserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public UserDO getByPhone(String phone) {
        return userMapper.getByPhone(phone);
    }

    @Override
    public boolean updateByReset(String phone, String email, String password) {
        return userMapper.updateByReset(phone, email, password);
    }
}
